package com.yanqu.road.entity.banquet.baifubanquet;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.DataStatus;

/**
 * @Description 百福宴会
 * @Author cwq
 * @Data 2021/11/9 10:30
 */
@FieldTypeAnnotation(tableName = "t_c_activity_good_banquet")
public class GoodBanquetData extends DataObject {

    @FieldTypeAnnotation(select = true, update = true, desc = "id")
    private long id;

    @FieldTypeAnnotation(select = true, update = true,desc = "开启时的活动id")
    private int activityId;

    @FieldTypeAnnotation(desc = "开启的玩家id")
    private long userId;

    @FieldTypeAnnotation(desc = "宴会类型")
    private int type;

    @FieldTypeAnnotation(desc = "参赛玩家数量 结算后才赋值")
    private int num;

    @FieldTypeAnnotation(desc = "是否结算")
    private boolean isSettlement;

    @FieldTypeAnnotation(desc = "结束时间 s")
    private long endTime;

    @FieldTypeAnnotation(desc = "开启时间 s")
    private long createTime;

    public long getId() {
        return id;
    }
    public void setId(long id) {
        if (this.id != id) {
            this.id = id;
            setOp(DataStatus.Update);
        }
    }

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getType() {
        return type;
    }
    public void setType(int type) {
        if (this.type != type) {
            this.type = type;
            setOp(DataStatus.Update);
        }
    }

    public int getNum() {
        return num;
    }
    public void setNum(int num) {
        if (this.num != num) {
            this.num = num;
            setOp(DataStatus.Update);
        }
    }

    public boolean getIsSettlement() {
        return isSettlement;
    }
    public void setIsSettlement(boolean isSettlement) {
        if (this.isSettlement != isSettlement) {
            this.isSettlement = isSettlement;
            setOp(DataStatus.Update);
        }
    }

    public long getEndTime() {
        return endTime;
    }
    public void setEndTime(long endTime) {
        if (this.endTime != endTime) {
            this.endTime = endTime;
            setOp(DataStatus.Update);
        }
    }

    public long getCreateTime() {
        return createTime;
    }
    public void setCreateTime(long createTime) {
        if (this.createTime != createTime) {
            this.createTime = createTime;
            setOp(DataStatus.Update);
        }
    }

}
